package com.heima.admin.service.impl;

import com.heima.admin.service.AuthService;
import com.heima.apis.user.IUserClient;
import com.heima.model.admin.dtos.AuthDto;
import com.heima.model.common.dtos.ResponseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
@Slf4j
public class AuthServiceImpl implements AuthService {

    @Autowired
    private IUserClient iUserClient;

    @Override
    public ResponseResult listWmUser(AuthDto dto) {
        return iUserClient.listWmUser(dto);
    }

    @Override
    public ResponseResult authFail(AuthDto dto) {
        return iUserClient.authFail(dto);
    }

    @Override
    public ResponseResult authPass(AuthDto dto) {
        return iUserClient.authPass(dto);
    }
}
